package com.vertigo.fever;

import java.util.HashMap;
import java.util.Map;

public class TileFactory {

	private Map<Character,Tile> tileLookup = new HashMap<Character,Tile>();
	
	public void add(Tile tile) {
	    tileLookup.put(tile.getCode(),tile);
	}
	
	public Tile get(char code) {
	    return tileLookup.get(code);
	}
}
